
import defaultSettings from '@/settings'

const { showSettings, tagsView, fixedHeader, sidebarLogo } = defaultSettings

const state = {
  menu_code:'',
  collect_show: false,
  collect_list: []
}

const mutations = {
  CHANGEMENUCODE: (state, data) => {
    state.menu_code = data
  },
  CHANGECOLLECTSHOW: (state, data) => {
    state.collect_show = data
  },
  CHANGECOLLECTLIST: (state, data) => {
    state.collect_list = data
  }
}

const actions = {
  changeMenuCode({ commit }, data) {
    commit('CHANGEMENUCODE', data)
  },
  changeCollectShow({ commit }, data) {
    commit('CHANGECOLLECTSHOW', data)
  },
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}

